package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 发布任务对象 t_release_task
 * 
 * @author ruoyi
 * @date 2022-10-16
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TReleaseTask extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 小区名 */
    @Excel(name = "小区名")
    private Long communityId;

    /** 楼栋 */
    @Excel(name = "楼栋")
    private Long buildingId;

    /** 检测位置 */
    @Excel(name = "检测位置")
    private String location;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 任务名 */
    @Excel(name = "任务名")
    private String task;

    private TCommunity community;
    private TBuilding building;

    public TCommunity getCommunity() {
        return community;
    }

    public void setCommunity(TCommunity community) {
        this.community = community;
    }

    public TBuilding getBuilding() {
        return building;
    }

    public void setBuilding(TBuilding building) {
        this.building = building;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCommunityId(Long communityId) 
    {
        this.communityId = communityId;
    }

    public Long getCommunityId() 
    {
        return communityId;
    }
    public void setBuildingId(Long buildingId) 
    {
        this.buildingId = buildingId;
    }

    public Long getBuildingId() 
    {
        return buildingId;
    }
    public void setLocation(String location) 
    {
        this.location = location;
    }

    public String getLocation() 
    {
        return location;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setTask(String task) 
    {
        this.task = task;
    }

    public String getTask() 
    {
        return task;
    }

    @Override
    public String toString() {
        return "TReleaseTask{" +
                "id=" + id +
                ", communityId=" + communityId +
                ", buildingId=" + buildingId +
                ", location='" + location + '\'' +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", task='" + task + '\'' +
                ", community=" + community +
                ", building=" + building +
                '}';
    }
}
